package ua.edu.sumdu.j2se.roman.lab1.service;

import ua.edu.sumdu.j2se.roman.lab1.domain.TaskList;
import ua.edu.sumdu.j2se.roman.lab1.exceptions.FileSerializationException;

/**
 * Author: Radko Roman.
 */

/**
 * Those interface contain tasks services methods.
 *
 */
public interface TasksService {
    /**
     * Must load list from somewhere.
     *
     * @return list
     * @throws FileSerializationException   if load is not fulfilled
     */
    TaskList loadList() throws FileSerializationException;

    /**
     * Must save list in something.
     *
     * @param tasks list
     * @throws FileSerializationException   if save is not fulfilled
     */
    void saveList(TaskList tasks) throws FileSerializationException;
}
